package com.xxx.service;

import com.xxx.mapper.AccountMapper;
import com.xxx.pojo.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/8/23 9:58
 * @Copyright 博为峰
 */
@Service("accountService")
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountMapper accountMapper;

    @Override
    public Account queryAccountByName(String name) {
        return accountMapper.selectAccountByName(name);
    }

    @Override
    public List<Account> queryAllAccount() {
        return accountMapper.selectAllAccount();
    }
}
